package address;

public class ArrangeInformation {

	public String getArrangedInfo(String phoneNumber) {
		phoneNumber = removeDoubleSpace(phoneNumber);
		
		phoneNumber = phoneNumber.replaceAll(" " , "-");
		System.out.println(phoneNumber);
		return phoneNumber;
	}
	
	private String removeDoubleSpace(String phoneNumber){
		return phoneNumber;
	}
	
	private boolean spaceCheck(String phoneNumber){
		for(int i =0; i < phoneNumber.length(); i++){
			if(phoneNumber.charAt(i) == ' '){
				return true;
			}
		}
		return false;
	}
}
